package com.apanal.qlife.sys.model;

import com.apanal.qlife.common.model.BaseModel;

/**
 * 数据字典实体类
 * 
 * 
 * @author shuliangxing
 * 
 * @date 2015-8-31下午5:37:22
 */
public class Dictionary extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5924990777619693870L;

	/**
	 * id
	 */
	private Long id;

	/**
	 * 编码
	 */
	private Integer code;

	/**
	 * 类型
	 */
	private String type;

	/**
	 * 类型名称
	 */
	private String typeName;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 语言编码。中文：zh-CN,英文：en-US
	 */
	private String language;

	/**
	 * 父编码,对应本表code
	 */
	private Integer pCode;

	/**
	 * 父编码字符串,斜杠"/"分隔
	 */
	private String pCodes;

	/**
	 * 显示顺序
	 */
	private Integer showIndex;

	/**
	 * 数据是否正常(可逆状态), 1:正常, 0:停用,来自t_dictionary.NORMAL
	 */
	private Integer normal;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type == null ? null : type.trim();
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName == null ? null : typeName.trim();
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content == null ? null : content.trim();
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language == null ? null : language.trim();
	}

	public Integer getpCode() {
		return pCode;
	}

	public void setpCode(Integer pCode) {
		this.pCode = pCode;
	}

	public String getpCodes() {
		return pCodes;
	}

	public void setpCodes(String pCodes) {
		this.pCodes = pCodes == null ? null : pCodes.trim();
	}

	public Integer getShowIndex() {
		return showIndex;
	}

	public void setShowIndex(Integer showIndex) {
		this.showIndex = showIndex;
	}

	public Integer getNormal() {
		return normal;
	}

	public void setNormal(Integer normal) {
		this.normal = normal;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Dictionary [id=" + id + ", code=" + code + ", type=" + type
				+ ", typeName=" + typeName + ", content=" + content
				+ ", language=" + language + ", pCode=" + pCode + ", pCodes="
				+ pCodes + ", showIndex=" + showIndex + ", normal=" + normal
				+ "]";
	}

}